//
//  BaseViewController.m
//  Meng
//
//  Created by dllo on 15/9/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "BaseViewController.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width / 375
#define HEIGHT [UIScreen mainScreen].bounds.size.height / 667

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)dealloc
{
    [_TitleLabel release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [AFNetwork AFNetwork];
    
    self.view.backgroundColor = [UIColor whiteColor];
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"down"] forBarMetrics:UIBarMetricsDefault];
    
    self.TitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100 * WIDTH, 30 * HEIGHT)];
    self.TitleLabel.textAlignment = 1;
    self.TitleLabel.font = [UIFont systemFontOfSize:20];
    self.TitleLabel.textColor = [UIColor whiteColor];
    self.navigationItem.titleView  = self.TitleLabel;
    
    [_TitleLabel release];
    
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
